
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="description" content="Reflect Template" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

        <title>WOW Admin Login</title>

        <link rel="stylesheet" href="/css/style_all.css" type="text/css" media="screen" />


        <!-- to choose another color scheme uncomment one of the foloowing stylesheets and wrap styl1.css into a comment -->
        <link rel="stylesheet" href="/css/style1.css" type="text/css" media="screen" />

        
        <!--Internet Explorer Trancparency fix-->
        <!--[if IE 6]>
        <script src="js/ie6pngfix.js"></script>
        <script>
          DD_belatedPNG.fix('#head, a, a span, img, .message p, .click_to_close, .ie6fix');
        </script>
        <![endif]-->
    </head>

    <body class="nobackground">

        <div id="login">

        	<h1 class="logo">
            	<a href="">WOW Admin Login</a>
            </h1>
            <h2 class="loginheading">Login</h2>
            <div class="icon_login ie6fix"></div>

            <form id="login-form" action="<?php echo $this->url(array('controller'=> 'index',   'action'=> 'index' ))?>" method="post">
                <p>
                    <?php echo $this->loginForm->AdminUserName->render()?>
                    
        	</p>
        	<p>
                    <?php echo $this->loginForm->Password->render()?>
        	</p>

        	<p class="remember">
                    <label for="checkbox1" class="inline">Remember me?</label>
                    <input type="checkbox" value="1" name="checkbox1" id="checkbox1" />
        	</p>
        	<!-- <div class="forgot_pw"><a href="index.html">Forgot password?</a></div>  -->
        	<p class="clearboth">
                    <input class="button" name="submit" type="submit" value="Login"/>
        	</p>
            </form>
        </div>
       
        <?php
            $ermsg = $this->loginForm->getMessages();
            $err_html = '';
            if(isset($ermsg['AdminUserName']['stringLengthTooShort']))
            {
                $err_html .= ' - Username '.$ermsg['AdminUserName']['stringLengthTooShort'] .' <br>';
            }
            if(isset($ermsg['Password']['stringLengthTooShort']))
            {
                $err_html .= ' - Password '. $ermsg['Password']['stringLengthTooShort'] .'<br>';
            }
            if(isset($ermsg[0]['Invalid']))
            {
                $err_html .= 'Wrong username or password<br>';
            }
        ?>
        
        <?php if(isset($ermsg['AdminUserName']) || isset($ermsg['Password'] ) || isset($ermsg[0]['Invalid']) ):?>
                <div class="login_message message error">
                  <?php echo ' <p>', $err_html, '</p>'?>
                </div>
       <?php endif;?>
    </body>
</html>
